package com.coder520.service;

import com.coder520.common.ServerResponse;
import com.coder520.pojo.Permission;
import com.coder520.pojo.Role;

import java.util.List;

/**
 * Created by ASUS on 2017/7/14.
 */
public interface IPermissionService {

    List<Role> findAll();

    void update(Long per_id,String description,String permission) throws Exception;

    void del(Long id);

    List<Permission> findPerAll();

    void addPer(String description,String permission) throws Exception;

    ServerResponse findPermissionByRoleId(Long roleid);

    void updateRole(Long roleid,String[] permissionid,String dsec);

    void addRole(String[] permissionid,String desc);

    ServerResponse findRoleAll();
}
